<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    // 命名函数
    async function fn() {
        
    }

    // 匿名函数
    var fn = async function () {

    }

    var obj = {
        a: 1,
        b: 2,
        sum: async function () {

        },
        async sum() {

        }
    }

    document.onclick = async function () {

    }


    let fn = async () => {

    }

    (async function () {


    })();

    (async () => { })()

    class Point {
        constructor(x, y) {
            this.x = x;
            this.y = y;
        }

        async toString() {
            return `(${this.x},${this.y})`
        }
    }





</script>

</html>